package com.burger.counter.business;

import com.burger.counter.beans.Dessert;
import com.burger.counter.dao.DessertDao;
import com.burger.counter.dao.SandwichDao;

public class DessertBussiness {

	public Dessert[] getDessertDetails(int regionId) throws Exception {
		System.out.println("In Bussiness Layer");
		DessertDao dessertDAO = new DessertDao();
		Dessert[] dessertDetails = dessertDAO.getDessertDetails(regionId);
		return dessertDetails;
	}
	
	public void setDessertCount(int regionId,String dessertName)throws Exception{
		System.out.println("we r in business layer");
		DessertDao dessertDao = new DessertDao();
		dessertDao.setDessertCount(regionId, dessertName);
	}
}
